TEX_FILES := $(wildcard *.tex)
PDF_FILES := $(patsubst %.tex,%.pdf,$(TEX_FILES))

all: $(PDF_FILES)

%.pdf: %.tex
	xelatex $(notdir $<)

clean:
	rm -f *.aux *.log *.pdf \
	*.toc *.snm *.nav *.out

.PHONY: all clean
